@extends('admin.layout')
@section('title','用户列表')
@section('content')
                <div class="app_content_div" id="app_content_div_301Index">
                    <h3>用户列表</h3>
                </div>
                <div>
                    <div style="float:right;">
                        <a type="button" class="btn btn-primary" href="user/create">新增</a>
                    </div>
                </div>
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th>id</th>
                        <th>用户名</th>
                        <th>更改密码</th>
                        <th>操作
                        <th>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach($oUsers as $v)
                    <tr>
                        <th scope="row">{{$v->id}}</th>
                        <td>{{$v->name}}</td>

                        <td><a style="cursor:pointer;" href="user/{{$v->id}}/edit">更改密码</a></td>
                        <form action="/adm/user/{{$v->id}}" method="post">
                            <input type="hidden" name="_method" value="DELETE">
                            {{csrf_field()}}
                            <td>
                                <button type="submit" class="glyphicon glyphicon-trash" aria-hidden="true"></button>
                            </td>
                        </form>

                    </tr>
                    @endforeach

                    </tbody>
                </table>
                {{$oUsers->links('admin.page')}}

@endsection
